sc.vec3
The Vector3 Module for the computer API!
Functions
newSingluar
sc.vec3.newSingluar( xyz )
Creates a vec3 by 1 number for xyz
Arguments:
- xyz [ number ] The value for the X, Y and Z
Returns:
- [ Vec3 ] The new vec3.
toRadians
sc.vec3.toRadians( vec3 )
Converts a vec3's numbers to radians.
Arguments:
- vec3 [ Vec3 ] The vec3 to convert.
Returns:
- [ Vec3 ] The new vec3.
toDegrees
sc.vec3.toDegrees( vec3 )
Converts a vec3's numbers to degrees.
Arguments:
- vec3 [ Vec3 ] The vec3 to convert.
Returns:
- [ Vec3 ] The new vec3.